package mfx

import (
	"go.uber.org/fx"
)

type AppParams struct {
	fx.In

	AppName    string `name:"AppName"`
	AppId      string `name:"AppId"`
	Deployment string `name:"Deployment"`
	Version    string `name:"Version"`
}

type AppResult struct {
	fx.Out

	AppName    string `name:"AppName" envconfig:"APP_NAME" default:"app"`
	AppId      string `name:"AppId" envconfig:"APP_ID" default:"app"`
	Deployment string `name:"Deployment" envconfig:"DEPLOYMENT" default:"local"`
	Version    string `name:"Version" envconfig:"VERSION" default:"v1.0.0"`
}

func (ar *AppResult) loadFromEnv() {

	//key.SetNamespace(ar.Deployment)

}
